﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using VideoCache.Server.MVCWeb.Attributes;

namespace VideoCache.Server.MVCWeb.Areas.Member.Models
{
    public class ChangePasswordModel
    {
        [Display(Name = "旧密码")]
        [Required(ErrorMessage = "请输入旧密码。")]
        [DataType(DataType.Password)]
        public string OldPassword { get; set; }

        [Display(Name = "新密码")]
        [Required(ErrorMessage = "请设置你的新密码。")]
        [DataType(DataType.Password)]
        public string NewPassword { get; set; }

        [Display(Name = "确认密码")]
        [Compare("NewPassword", ErrorMessage = "新密码与确认密码不一致。")]
        [DataType(DataType.Password)]
        public string ConfirmPassword { get; set; }

        [Display(Name = "验证码")]
        [Required(ErrorMessage = "请输入验证码。")]
        [VerifyCode(ErrorMessage = "验证码错误。")]
        public string VerifyCode { get; set; }
    }
}